Skip to content

perf: improve compression throughput and reduce allocations#408

Merged
eguguchkin merged 3 commits into
mainfrom
0-proxy-small-tune
Jun 9, 2026
Merged

perf: improve compression throughput and reduce allocations#408
eguguchkin merged 3 commits into
mainfrom
0-proxy-small-tune

Conversation

@eguguchkin

Copy link
Copy Markdown
Collaborator

Parallelize compression and optimize memory allocations

  • Parallelize docs and metas compression in DocsMetasCompressor using goroutines
  • Pre-allocate 1MiB capacity for binaryDocsPool and binaryMetasPool to reduce allocations
  • Skip zero-value metric increments in MergeQPRs when repetitionsCount is 0
  • Fix partial indexing logic in keyword/path/text tokenizers: now correctly truncating oversized values instead of always discarding the tail without partial indexing

  • I have read and followed all requirements in CONTRIBUTING.md;
  • I used LLM/AI assistance to make this pull request;

@codecov-commenter

codecov-commenter commented Apr 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.78%. Comparing base (df680ff) to head (0241c43).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #408      +/-   ##
==========================================
- Coverage   70.81%   70.78%   -0.04%     
==========================================
  Files         225      225              
  Lines       17498    17504       +6     
==========================================
- Hits        12392    12390       -2     
- Misses       4182     4190       +8     
  Partials      924      924              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
ProcessDocuments-4 124d46 fa9305
4.00 allocs/op 7.00 allocs/op 1.75 🔴

@eguguchkin eguguchkin requested review from cheb0 and forshev May 18, 2026 10:20
@eguguchkin eguguchkin modified the milestones: v0.72.0, v0.73.0 Jun 8, 2026
@eguguchkin eguguchkin force-pushed the 0-proxy-small-tune branch from bce6fea to 469b528 Compare June 9, 2026 16:31
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
ProcessDocuments-4 bcaaf4 f6b60d
4.00 allocs/op 7.00 allocs/op 1.75 🔴

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
ProcessDocuments-4 df680f 7fda08
4.00 allocs/op 7.00 allocs/op 1.75 🔴

@eguguchkin eguguchkin merged commit 8fb9752 into main Jun 9, 2026
8 checks passed
@eguguchkin eguguchkin deleted the 0-proxy-small-tune branch June 9, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants